<?php
error_reporting(E_ERROR | E_PARSE);
define ('ROOT',dirname(__FILE__));
define ('SAVE_ROOT',ROOT.'/save');
if (file_exists(ROOT.'/install.lock'))
	exit('已安装，如需再次安装请删除install.lock文件');

if (!file_exists(SAVE_ROOT))
	mkdir(SAVE_ROOT);

//mysql_query();

?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta charset="UTF-8" />
<title>安装</title>
</head>
<body>
<p>已安装成功，3秒后跳转至首页</p>
</p><a href="<?php echo dirname($_SERVER['SCRIPT_NAME']); ?>">如果页面没有跳转，请单击此处</a></p>
</body>
<script></script>
</html>
<?php
file_put_contents(ROOT.'/install.lock',"install lock");
?>